﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace deviceManage.vo
{
    public class AjaxResult
    {
        public int Code { get; set; }
        public int Count { get; set; }
        public IList Data { get; set; }
        public string Msg { get; set; }

        public static AjaxResult GetError(string msg)
        {
            AjaxResult result = new AjaxResult();
            result.Code = 0;
            result.Msg = msg;
            return result;
        }

        public static AjaxResult GetOK(string msg)
        {
            AjaxResult result = new AjaxResult();
            result.Code = 1;
            result.Msg = msg;
            return result;
        }        
    }
}
